-- GENERATED SPELL FOR [Defias Conjurer] --


function spell0_619(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_619', 3000, 1)
end

function spell1_619(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_619', 0, 1)
end

function spell2_619(pUnit, Event) --@Voidwalker,Self--
pUnit:FullCastSpellOnTarget(5108,pUnit)
pUnit:RegisterEvent('Sorts_619', 0, 1)
end

function Sorts_619(pUnit, Event)
local choix_sorts_619 = math.random(0, 2)
if choix_sorts_619 == 0 then
pUnit:RegisterEvent('spell0_619', 1, 1)
end
if choix_sorts_619 == 1 then
pUnit:RegisterEvent('spell1_619', 1, 1)
end
if choix_sorts_619 == 2 then
pUnit:RegisterEvent('spell2_619', 1, 1)
end
end

function mob619_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_619', math.random(1500, 3000), 1)
end

function mob619_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob619_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob619_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(619, 1, 'mob619_Action')
RegisterUnitEvent(619, 2, 'mob619_Leave')
RegisterUnitEvent(619, 3, 'mob619_Kill')
RegisterUnitEvent(619, 4, 'mob619_Die')
